package com.example.rabbitmq;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;


public class PaymentReq implements Serializable {
    private static final long serialVersionUID = 3L;


    private Integer orderId;
    private BigDecimal amount;
    private String userId;

    public PaymentReq() {
    }

    public PaymentReq(Integer orderId, BigDecimal amount, String userId) {
        this.orderId = orderId;
        this.amount = amount;
        this.userId = userId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "PaymentReq{" +
                "orderId=" + orderId +
                ", amount=" + amount +
                ", userId='" + userId + '\'' +
                '}';
    }
}
